<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.0">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">



<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.4/css/all.min.css" integrity="sha256-mUZM63G8m73Mcidfrv5E+Y61y7a12O5mW4ezU3bxqW4=" crossorigin="anonymous">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.1.1/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">

<script class="next-config" data-name="main" type="application/json">{"hostname":"zhengmingpei.gitee.io","root":"/","images":"/images","scheme":"Pisces","darkmode":false,"version":"8.8.1","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":false,"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果：${query}","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","hits":"找到 ${hits} 个搜索结果"}}</script><script src="/js/config.js"></script>
<meta name="description" content="起因github pages是搭建个人博客的一个优秀平台，由于我之前将博客建在了CSDN，写了含有”翻墙”之类敏感关键词的博客而未审核通过（天朝你懂的），就怒而决定选择新的博客平台，恰好发掘到了github pages。 优点介绍我个人在之前查找了很多资料，看了一些博客内容（比如阮一峰的博客），认为github pages有很多优点，比如：  github pages无需自己购买主机，直接使用gi">
<meta property="og:type" content="article">
<meta property="og:title" content="使用jekyll搭建github pages博客">
<meta property="og:url" content="https://zhengmingpei.gitee.io/2014/11/15/jekyll/index.html">
<meta property="og:site_name" content="郑明培的个人博客">
<meta property="og:description" content="起因github pages是搭建个人博客的一个优秀平台，由于我之前将博客建在了CSDN，写了含有”翻墙”之类敏感关键词的博客而未审核通过（天朝你懂的），就怒而决定选择新的博客平台，恰好发掘到了github pages。 优点介绍我个人在之前查找了很多资料，看了一些博客内容（比如阮一峰的博客），认为github pages有很多优点，比如：  github pages无需自己购买主机，直接使用gi">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2014-11-15T07:00:00.000Z">
<meta property="article:modified_time" content="2021-11-28T04:03:50.596Z">
<meta property="article:author" content="zhengmingpei">
<meta property="article:tag" content="折腾">
<meta property="article:tag" content="博客">
<meta property="article:tag" content="jekyll">
<meta property="article:tag" content="github">
<meta name="twitter:card" content="summary">


<link rel="canonical" href="https://zhengmingpei.gitee.io/2014/11/15/jekyll/">



<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":false,"isPost":true,"lang":"zh-CN","comments":true,"permalink":"https://zhengmingpei.gitee.io/2014/11/15/jekyll/","path":"2014/11/15/jekyll/","title":"使用jekyll搭建github pages博客"}</script>

<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>使用jekyll搭建github pages博客 | 郑明培的个人博客</title>
  




  <noscript>
    <link rel="stylesheet" href="/css/noscript.css">
  </noscript>
</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <i class="logo-line"></i>
      <h1 class="site-title">郑明培的个人博客</h1>
      <i class="logo-line"></i>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu">
        <li class="menu-item menu-item-home"><a href="/" rel="section"><i class="home fa-fw"></i>首页</a></li>
        <li class="menu-item menu-item-archives"><a href="/archives" rel="section"><i class="archive fa-fw"></i>归档</a></li>
        <li class="menu-item menu-item-about"><a href="/about" rel="section"><i class="user fa-fw"></i>关于</a></li>
        <li class="menu-item menu-item-categories"><a href="/categories" rel="section"><i class="th fa-fw"></i>分类</a></li>
        <li class="menu-item menu-item-tags"><a href="/tags" rel="section"><i class="tags fa-fw"></i>标签</a></li>
  </ul>
</nav>




</div>
        
  
  <div class="toggle sidebar-toggle" role="button">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>

  <aside class="sidebar">

    <div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
            <div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E8%B5%B7%E5%9B%A0"><span class="nav-number">1.</span> <span class="nav-text">起因</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%BC%98%E7%82%B9%E4%BB%8B%E7%BB%8D"><span class="nav-number">2.</span> <span class="nav-text">优点介绍</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%90%AD%E5%BB%BA%E8%BF%87%E7%A8%8B"><span class="nav-number">3.</span> <span class="nav-text">搭建过程</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%BD%BF%E7%94%A8"><span class="nav-number">4.</span> <span class="nav-text">使用</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E7%BB%93%E8%AF%AD"><span class="nav-number">5.</span> <span class="nav-text">结语</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%A4%87%E6%B3%A8"><span class="nav-number">6.</span> <span class="nav-text">备注</span></a></li></ol></div>
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">zhengmingpei</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap site-overview-item animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
        <a href="/archives">
          <span class="site-state-item-count">36</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
          <a href="/categories">
        <span class="site-state-item-count">4</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
          <a href="/tags">
        <span class="site-state-item-count">41</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author site-overview-item animated">
      <span class="links-of-author-item">
        <a href="https://github.com/zhengmingpei" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;zhengmingpei" rel="noopener" target="_blank"><i class="github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://gitee.com/zhengmingpei" title="gitee → https:&#x2F;&#x2F;gitee.com&#x2F;zhengmingpei" rel="noopener" target="_blank">gitee</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://space.bilibili.com/32918983" title="bilibili → https:&#x2F;&#x2F;space.bilibili.com&#x2F;32918983" rel="noopener" target="_blank">bilibili</a>
      </span>
  </div>



        </div>
      </div>
    </div>
  </aside>
  <div class="sidebar-dimmer"></div>


    </header>

    
  <div class="back-to-top" role="button" aria-label="返回顶部">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://zhengmingpei.gitee.io/2014/11/15/jekyll/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="zhengmingpei">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="郑明培的个人博客">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          使用jekyll搭建github pages博客
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2014-11-15 15:00:00" itemprop="dateCreated datePublished" datetime="2014-11-15T15:00:00+08:00">2014-11-15</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2021-11-28 12:03:50" itemprop="dateModified" datetime="2021-11-28T12:03:50+08:00">2021-11-28</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/%E5%A4%A7%E5%AD%A6/" itemprop="url" rel="index"><span itemprop="name">大学</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
        <h2 id="起因"><a href="#起因" class="headerlink" title="起因"></a>起因</h2><p>github pages是搭建个人博客的一个优秀平台，由于我之前将博客建在了CSDN，写了含有”翻墙”之类敏感关键词的博客而未审核通过（天朝你懂的），就怒而决定选择新的博客平台，恰好发掘到了github pages。</p>
<h2 id="优点介绍"><a href="#优点介绍" class="headerlink" title="优点介绍"></a>优点介绍</h2><p>我个人在之前查找了很多资料，看了一些博客内容（比如阮一峰的博客），认为github pages有很多优点，比如：</p>
<ul>
<li>github pages无需自己购买主机，直接使用github上的免费空间即可</li>
<li>github pages的可定制化更强，可以使用多种工具和模板，我用的是其官方推荐的jekyll，套用了一个简洁的模板</li>
<li>github pages支持Markdown，而Markdown绝对是书写神器，它让在写文档时进行结构控制和代码高亮变得异常轻松</li>
<li>至于有人说用github pages建站麻烦，其实也不过如此，无非几个步骤而已</li>
</ul>
<h2 id="搭建过程"><a href="#搭建过程" class="headerlink" title="搭建过程"></a>搭建过程</h2><p>至于搭建过程，用Google可以搜索到很多教程，我这里就挑重要的说：</p>
<ol>
<li>推荐使用Linux（如果你是土豪，用Mac），因为在windows上搞会容易出很多很多问题</li>
<li>推荐去github pages的官方主页，那里有用jekyll构建的完整教程，步骤详尽，而且有很多指向jekyll的链接，方便至极</li>
<li>安装<code>Ruby</code>，安装<code>jekyll</code>，也要安装个<code>rake</code></li>
</ol>
<h2 id="使用"><a href="#使用" class="headerlink" title="使用"></a>使用</h2><ul>
<li>要熟悉目录结构，配置文件<code>_config.yml</code></li>
<li>新增文章，可以使用<code>rake post title=&quot;&quot; date=&quot;&quot;</code></li>
<li>美化和代码高亮等可以用更改CSS解决，后者需要的python在Linux上本就安装好了，而在windows下有很多问题，这也是推荐Linux的原因</li>
</ul>
<h2 id="结语"><a href="#结语" class="headerlink" title="结语"></a>结语</h2><p>哈哈，可以享受github pages了。</p>
<h2 id="备注"><a href="#备注" class="headerlink" title="备注"></a>备注</h2><p>这是我<code>_config.yml</code>，尤其要注意几个路径，一定不要错了。这样就可以正确发布到github和引用图片了！</p>
<figure class="highlight yml"><table><tr><td class="code"><pre><span class="line"><span class="comment"># This is the default format. </span></span><br><span class="line"><span class="comment"># For more see: http://jekyllrb.com/docs/permalinks/</span></span><br><span class="line"><span class="attr">permalink:</span> <span class="string">/:categories/:year/:month/:day/:title</span> </span><br><span class="line"></span><br><span class="line"><span class="attr">exclude:</span> [<span class="string">&quot;.rvmrc&quot;</span>, <span class="string">&quot;.rbenv-version&quot;</span>, <span class="string">&quot;README.md&quot;</span>, <span class="string">&quot;Rakefile&quot;</span>, <span class="string">&quot;changelog.md&quot;</span>]</span><br><span class="line"><span class="attr">highlighter:</span> <span class="string">pygments</span></span><br><span class="line"><span class="attr">markdown:</span> <span class="string">redcarpet</span> </span><br><span class="line"><span class="attr">redcarpet:</span></span><br><span class="line">    <span class="attr">extensions:</span></span><br><span class="line">        <span class="bullet">-</span> <span class="string">hard_wrap</span></span><br><span class="line">        <span class="bullet">-</span> <span class="string">no_intra_emphasis</span></span><br><span class="line">        <span class="bullet">-</span> <span class="string">autolink</span></span><br><span class="line">        <span class="bullet">-</span> <span class="string">strikethrough</span></span><br><span class="line">        <span class="bullet">-</span> <span class="string">fenced_code_blocks</span></span><br><span class="line"><span class="comment"># Themes are encouraged to use these universal variables </span></span><br><span class="line"><span class="comment"># so be sure to set them if your theme uses them.</span></span><br><span class="line"><span class="comment">#</span></span><br><span class="line"><span class="attr">title :</span> <span class="string">郑明培的博客</span></span><br><span class="line"><span class="attr">tagline:</span> <span class="string">Site</span> <span class="string">Tagline</span></span><br><span class="line"><span class="attr">author :</span></span><br><span class="line">  <span class="attr">name :</span> <span class="string">Mingpei</span> <span class="string">Zheng</span></span><br><span class="line">  <span class="attr">email :</span> <span class="string">yueyawanbian@gmail.com</span></span><br><span class="line">  <span class="attr">github :</span> <span class="string">Zhengmingpei</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># The production_url is only used when full-domain names are needed</span></span><br><span class="line"><span class="comment"># such as sitemap.txt </span></span><br><span class="line"><span class="comment"># Most places will/should use BASE_PATH to make the urls</span></span><br><span class="line"><span class="comment">#</span></span><br><span class="line"><span class="comment"># If you have set a CNAME (pages.github.com) set your custom domain here.</span></span><br><span class="line"><span class="comment"># Else if you are pushing to username.github.io, replace with your username.</span></span><br><span class="line"><span class="comment"># Finally if you are pushing to a GitHub project page, include the project name at the end.</span></span><br><span class="line"><span class="comment">#</span></span><br><span class="line"><span class="attr">production_url :</span> <span class="string">http://Zhengmingpei.github.io</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># All Jekyll-Bootstrap specific configurations are namespaced into this hash</span></span><br><span class="line"><span class="comment">#</span></span><br><span class="line"><span class="attr">JB :</span></span><br><span class="line">  <span class="attr">version :</span> <span class="number">0.3</span><span class="number">.0</span></span><br><span class="line"></span><br><span class="line">  <span class="comment"># All links will be namespaced by BASE_PATH if defined.</span></span><br><span class="line">  <span class="comment"># Links in your website should always be prefixed with &#123;&#123;BASE_PATH&#125;&#125;</span></span><br><span class="line">  <span class="comment"># however this value will be dynamically changed depending on your deployment situation.</span></span><br><span class="line">  <span class="comment">#</span></span><br><span class="line">  <span class="comment"># CNAME (http://yourcustomdomain.com)</span></span><br><span class="line">  <span class="comment">#   DO NOT SET BASE_PATH </span></span><br><span class="line">  <span class="comment">#   (urls will be prefixed with &quot;/&quot; and work relatively)</span></span><br><span class="line">  <span class="comment">#</span></span><br><span class="line">  <span class="comment"># GitHub Pages (http://username.github.io)</span></span><br><span class="line">  <span class="comment">#   DO NOT SET BASE_PATH </span></span><br><span class="line">  <span class="comment">#   (urls will be prefixed with &quot;/&quot; and work relatively)</span></span><br><span class="line">  <span class="comment">#</span></span><br><span class="line">  <span class="comment"># GitHub Project Pages (http://username.github.io/project-name)</span></span><br><span class="line">  <span class="comment">#</span></span><br><span class="line">  <span class="comment">#   A GitHub Project site exists in the `gh-pages` branch of one of your repositories.</span></span><br><span class="line">  <span class="comment">#  REQUIRED! Set BASE_PATH to: http://username.github.io/project-name</span></span><br><span class="line">  <span class="comment">#</span></span><br><span class="line">  <span class="comment"># CAUTION:</span></span><br><span class="line">  <span class="comment">#   - When in Localhost, your site will run from root &quot;/&quot; regardless of BASE_PATH</span></span><br><span class="line">  <span class="comment">#   - Only the following values are falsy: [&quot;&quot;, null, false]</span></span><br><span class="line">  <span class="comment">#   - When setting BASE_PATH it must be a valid url.</span></span><br><span class="line">  <span class="comment">#     This means always setting the protocol (http|https) or prefixing with &quot;/&quot;</span></span><br><span class="line">  <span class="attr">BASE_PATH :</span> <span class="literal">false</span></span><br><span class="line"></span><br><span class="line">  <span class="comment"># By default, the asset_path is automatically defined relative to BASE_PATH plus the enabled theme.</span></span><br><span class="line">  <span class="comment"># ex: [BASE_PATH]/assets/themes/[THEME-NAME]</span></span><br><span class="line">  <span class="comment">#</span></span><br><span class="line">  <span class="comment"># Override this by defining an absolute path to assets here.</span></span><br><span class="line">  <span class="comment"># ex: </span></span><br><span class="line">  <span class="comment">#   http://s3.amazonaws.com/yoursite/themes/watermelon</span></span><br><span class="line">  <span class="comment">#   /assets</span></span><br><span class="line">  <span class="comment">#</span></span><br><span class="line">  <span class="attr">ASSET_PATH :</span> <span class="literal">false</span></span><br><span class="line"></span><br><span class="line">  <span class="comment"># These paths are to the main pages Jekyll-Bootstrap ships with.</span></span><br><span class="line">  <span class="comment"># Some JB helpers refer to these paths; change them here if needed.</span></span><br><span class="line">  <span class="comment">#</span></span><br><span class="line">  <span class="attr">archive_path:</span> <span class="string">/archive.html</span></span><br><span class="line">  <span class="attr">categories_path :</span> <span class="string">/categories.html</span></span><br><span class="line">  <span class="attr">tags_path :</span> <span class="string">/tags.html</span></span><br><span class="line">  <span class="attr">atom_path :</span> <span class="string">/atom.xml</span></span><br><span class="line">  <span class="attr">rss_path :</span> <span class="string">/rss.xml</span></span><br><span class="line"></span><br><span class="line">  <span class="comment"># Settings for comments helper</span></span><br><span class="line">  <span class="comment"># Set &#x27;provider&#x27; to the comment provider you want to use.</span></span><br><span class="line">  <span class="comment"># Set &#x27;provider&#x27; to false to turn commenting off globally.</span></span><br><span class="line">  <span class="comment">#</span></span><br><span class="line">  <span class="attr">comments :</span></span><br><span class="line">    <span class="attr">provider :</span> <span class="string">disqus</span></span><br><span class="line">    <span class="attr">disqus :</span></span><br><span class="line">      <span class="attr">short_name :</span> <span class="string">jekyllbootstrap</span></span><br><span class="line">    <span class="attr">livefyre :</span></span><br><span class="line">      <span class="attr">site_id :</span> <span class="number">123</span></span><br><span class="line">    <span class="attr">intensedebate :</span></span><br><span class="line">      <span class="attr">account :</span> <span class="string">123abc</span></span><br><span class="line">    <span class="attr">facebook :</span></span><br><span class="line">      <span class="attr">appid :</span> <span class="number">123</span></span><br><span class="line">      <span class="attr">num_posts:</span> <span class="number">5</span></span><br><span class="line">      <span class="attr">width:</span> <span class="number">580</span></span><br><span class="line">      <span class="attr">colorscheme:</span> <span class="string">light</span></span><br><span class="line">   </span><br><span class="line">  <span class="comment"># Settings for analytics helper</span></span><br><span class="line">  <span class="comment"># Set &#x27;provider&#x27; to the analytics provider you want to use.</span></span><br><span class="line">  <span class="comment"># Set &#x27;provider&#x27; to false to turn analytics off globally.</span></span><br><span class="line">  <span class="comment">#        </span></span><br><span class="line">  <span class="attr">analytics :</span></span><br><span class="line">    <span class="attr">provider :</span> <span class="string">google</span> </span><br><span class="line">    <span class="attr">google :</span> </span><br><span class="line">        <span class="attr">tracking_id :</span> <span class="string">&#x27;UA-123-12&#x27;</span></span><br><span class="line">    <span class="attr">getclicky :</span></span><br><span class="line">      <span class="attr">site_id :</span> </span><br><span class="line">    <span class="attr">mixpanel :</span></span><br><span class="line">        <span class="attr">token :</span> <span class="string">&#x27;_MIXPANEL_TOKEN_&#x27;</span></span><br><span class="line">    <span class="attr">piwik :</span></span><br><span class="line">        <span class="attr">baseURL :</span> <span class="string">&#x27;myserver.tld/piwik&#x27;</span> <span class="comment"># Piwik installation address (without protocol)</span></span><br><span class="line">        <span class="attr">idsite :</span> <span class="string">&#x27;1&#x27;</span>                   <span class="comment"># the id of the site on Piwik</span></span><br><span class="line"></span><br><span class="line">  <span class="comment"># Settings for sharing helper. </span></span><br><span class="line">  <span class="comment"># Sharing is for things like tweet, plusone, like, reddit buttons etc.</span></span><br><span class="line">  <span class="comment"># Set &#x27;provider&#x27; to the sharing provider you want to use.</span></span><br><span class="line">  <span class="comment"># Set &#x27;provider&#x27; to false to turn sharing off globally.</span></span><br><span class="line">  <span class="comment">#</span></span><br><span class="line">  <span class="attr">sharing :</span></span><br><span class="line">    <span class="attr">provider :</span> <span class="literal">false</span></span><br><span class="line">    </span><br><span class="line">  <span class="comment"># Settings for all other include helpers can be defined by creating </span></span><br><span class="line">  <span class="comment"># a hash with key named for the given helper. ex:</span></span><br><span class="line">  <span class="comment">#</span></span><br><span class="line">  <span class="comment">#   pages_list :</span></span><br><span class="line">  <span class="comment">#     provider : &quot;custom&quot;   </span></span><br><span class="line">  <span class="comment">#</span></span><br><span class="line">  <span class="comment"># Setting any helper&#x27;s provider to &#x27;custom&#x27; will bypass the helper code</span></span><br><span class="line">  <span class="comment"># and include your custom code. Your custom file must be defined at:</span></span><br><span class="line">  <span class="comment">#   ./_includes/custom/[HELPER]</span></span><br><span class="line">  <span class="comment"># where [HELPER] is the name of the helper you are overriding.</span></span><br></pre></td></tr></table></figure>
<p>就到这里。</p>

    </div>

    
    
    

    <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/%E6%8A%98%E8%85%BE/" rel="tag"># 折腾</a>
              <a href="/tags/%E5%8D%9A%E5%AE%A2/" rel="tag"># 博客</a>
              <a href="/tags/jekyll/" rel="tag"># jekyll</a>
              <a href="/tags/github/" rel="tag"># github</a>
          </div>

        

          <div class="post-nav">
            <div class="post-nav-item">
                <a href="/2014/10/27/windows2048/" rel="prev" title="Windows控制台版2048">
                  <i class="fa fa-chevron-left"></i> Windows控制台版2048
                </a>
            </div>
            <div class="post-nav-item">
                <a href="/2015/01/28/gitvim/" rel="next" title="利用git管理vim插件">
                  利用git管理vim插件 <i class="fa fa-chevron-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>






</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">


<div class="copyright">
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">zhengmingpei</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/pisces/" rel="noopener" target="_blank">NexT.Pisces</a> 强力驱动
  </div>

    </div>
  </footer>

  
  <script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script>
<script src="/js/comments.js"></script><script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/next-boot.js"></script>

  





  





</body>
</html>
